package com.ruoyi.system.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 手机号表
 * @author admin
 *
 */
public class Phone extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** phone */
    @Excel(name = "手机号码",orderNum = "1", width = 15.0,isImportField = "true")
	@NotNull(message = "手机号码不能为空")
    private Long phone;

	private Date createAt;

	private Date useTime;

	private String flag;

	private String craBeginTime;
	private String craEndTime;

	public String getCraBeginTime() {
		return craBeginTime;
	}

	public void setCraBeginTime(String craBeginTime) {
		this.craBeginTime = craBeginTime;
	}

	public String getCraEndTime() {
		return craEndTime;
	}

	public void setCraEndTime(String craEndTime) {
		this.craEndTime = craEndTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPhone() {
		return phone;
	}

	public void setPhone(Long phone) {
		this.phone = phone;
	}

	public Date getCreateAt() {
		return createAt;
	}

	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}

	public Date getUseTime() {
		return useTime;
	}

	public void setUseTime(Date useTime) {
		this.useTime = useTime;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            	.append("id", getId())
            	.append("phone", getPhone())
            	.append("createAt", getCreateAt())
				.append("useTime", getUseTime())
				.append("flag", getFlag())
				.append("craBeginTime", getCraBeginTime())
				.append("craEndTime", getCraEndTime())
            	.toString();
    }
}
